package com.bristua.mall.wx.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.wx.biz.AppGetUserInfoBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/18.
 */
@RestController
@Api(value="获取微信用户信息",tags={"获取微信用户信息"})
public class QueryWxUserInfoController {

    @Autowired
    private AppGetUserInfoBiz appGetUserInfoBiz;
    @ApiOperation(value="获取微信用户信息")
    @PostMapping(value="/api/wx/get/userinfo")
    public Result queryWxUserInfo(){
        return HandleResultUtil.querySuccessResult(appGetUserInfoBiz.getUserInfo());
    }
}
